//
//  APPConfig.swift
//  Lease_IOS
//
//  Created by Mr.wang on 2019/4/29.
//  Copyright © 2018 Mr.wang. All rights reserved.
//     __            __            __
//     \ \          /  \          / /     帅™
//      \ \        / /\ \        / /
//       \ \      / /  \ \      / /
//        \ \    / /    \ \    / /
//         \ \  / /      \ \  / /
//          \ \/ /        \ \/ /
//           \__/          \__/


import UIKit

let SCREEN_WIDTH                     = UIScreen.main.bounds.width
let SCREEN_HEIGHT                    = UIScreen.main.bounds.height

let bannerHeight                     = SCREEN_WIDTH * 0.43

struct APPConfig {
    
    #if DEBUG
    static var baseUrl               = "https://app.ae-solar.com.cn/" //正式
    #else
    static var baseUrl               = "https://app.ae-solar.com.cn/" //正式
    #endif
    
    static var protocolUrl: String {
        var url = "photovoltaic/static/html/privacy_cn.html"
        
        if let userSelectLanguage = AppCache.shared.object(for: APPUserDefault.self).userSelectLanguage {
            switch userSelectLanguage {
            case .chinese:
                url = "photovoltaic/static/html/privacy_zh.html"
            case .english:
                url = "photovoltaic/static/html/privacy_cn.html"
            case .de:
                url = "photovoltaic/static/html/privacy_de.html"
            case .vi:
                url = "photovoltaic/static/html/privacy_vi.html"
            }
        }
        return baseUrl + url
    }
    
    static let imagePath             = baseUrl + "photovoltaic/sys-oss/"
    
    static let baseColor             = #colorLiteral(red: 0.9647058824, green: 0.003921568627, blue: 0.03529411765, alpha: 1)
    
    //微信
    static let wxkey                 = "wx7c694e7ae0df7f7d"
    static let wxsecret              = "dbcd6baad0672c1c997cd62d2be36dad"
    
    static let appStoreId            = "1383543751"
}
